
<template>
	<view>
		<scroll-view scroll-x class="bg-white nav">
			<view class="flex text-center">
				<view class="cu-item flex-sub" :class="index==TabCur?'text-purple cur bgAll':''"
					v-for="(item,index) in TopTables" :key="index" @click="tabSelect(index)">
					{{item.text}}
				</view>
			</view>
		</scroll-view>
		<scroll-view scroll-x class="bg-white nav">
			<view class="flex text-center">
				<view class="cu-item flex-sub" :class="index==TabCur?'text-purple cur':''"
					v-for="(item,index) in tabList" :key="index" @click="tabSelect(index)">
					{{item}}
				</view>
			</view>
		</scroll-view>
		<view class="data-list"  v-for="(item,index) in 5">
				<view class="user-trends">
					<!-- 头像信息 -->
					<view class="user-trends-top">
						<view class="trends-top-img">
							
						</view>
						<view class="trends-user-info">
							<view class="user-name">
								<view>微信用户</view>
								<!-- <view class="ziyuan">
									资源
								</view> -->
							</view>
							<view class="send-time">
								2022/02/2 15:23
							</view>
						</view>
					</view>
					<!-- 内容 -->
					<view class="send-trends-conten">
						<view class="title-conten">
							第一天sfiafuashfukhaufhuiahuihasiufhasiufhiuhui大师傅但是士大夫大师傅大师傅士大夫
						</view>
						<view class="image-conten">
							<view class="image-list" v-for="(items,index) in 4">
								{{items}}
							</view>
						</view>
					</view>
					<!-- 点赞 -->
					<view class="operate">
						<view class="operate-detile">
							<uni-icons type="hand-down" color="#9f9f9f" size="18"></uni-icons>
							<text>没有价值{{0}}</text>
						</view>
						<view class="operate-detile">
							<uni-icons type="hand-up"color="#9f9f9f" size="18"></uni-icons>
							<text>靠谱{{999>999?'999+':99}}</text>
						</view>
						<view class="operate-detile">
							<uni-icons type="chat"color="#9f9f9f" size="18"></uni-icons>
							<text>评论{{0}}</text>
						</view>
					</view>
				</view>
			</view>
		<view class="data-card">
			
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				TabCur:0,
				TopTables:[{type:0,text:"全部"},{type:1,text:"一度"},{type:2,text:"二度"},{type:3,text:"三度"}],
				tabList: ['全部', '资源', '需求'],
			};
		},
		methods:{
			tabSelect(index){
				this.TabCur = index
			}
		}
	}
</script>

<style lang="less">
	.bgAll{
		background-color: #6739b6;
		color: #FFFFFF;
	}
	.user-trends{
		width: 94%;
		min-height: 30vh;
		background-color: #FFFFFF;
		border-radius: 20rpx;
		margin: 2% auto;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		padding: 15rpx;
		.user-trends-top{
			display: flex;
			.trends-top-img{
				width: 100rpx;
				height: 100rpx;
				background-color: #00BFFF;
				border-radius: 100%;
			}
			.trends-user-info{
				display: flex;
				flex-direction: column;
				justify-content: space-around;
				width: 80%;
				margin-left:2%;
				.user-name{
					font-family: "微软雅黑";
					font-weight: 600;
					font-size: 30rpx;
					display: flex;
					align-items: center;
					.ziyuan{
						width: 60rpx;
						height: 38rpx;
						background-color: #994275;
						font-size: 18rpx;
						margin-left: 5%;
						color: #FFFFFF;
						border-radius: 15rpx 15rpx 15rpx 0rpx;
						display: flex;
						justify-content: center;
						align-items: center;
					}
				}
				.send-time{
					font-size: 24rpx;
					color: #cecece;
				}
			}
		}
		.send-trends-conten{
			.title-conten{
				margin: 2% 0;
			}
			.image-conten{
				width: 100%;
				display: flex;
				flex-wrap: wrap;
				.image-list{
					width: 30%;
					height: 180rpx;
					background-color: #00BFFF;
					margin: 2% 1.6%;
					border-radius: 15rpx;
					image{
						width: 100%;
						height: 100%;
						border-radius: 15rpx;
					}
				}
			}
		}
		.operate{
			width: 100%;
			display: flex;
			justify-content: space-between;
			.operate-detile{
				font-size: 25rpx;
				color: #9f9f9f;
				display: flex;
				align-items: center;
				text{
					margin-left: 10rpx;
				}
			}
		}
	}
	// 内容
	.data-card{
		height: 50rpx;
	}
</style>
